package com.dds.system.service.app.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dds.system.mapper.app.AppUserScoreDetailMapper;
import com.dds.system.domain.app.AppUserScoreDetail;
import com.dds.system.service.app.IAppUserScoreDetailService;

/**
 * 用户积分明细Service业务层处理
 * 
 * @author gaolianjie
 * @date 2021-04-01
 */
@Service
public class AppUserScoreDetailServiceImpl implements IAppUserScoreDetailService 
{
    @Autowired
    private AppUserScoreDetailMapper appUserScoreDetailMapper;

    /**
     * 查询用户积分明细
     * 
     * @param id 用户积分明细ID
     * @return 用户积分明细
     */
    @Override
    public AppUserScoreDetail selectAppUserScoreDetailById(Integer id)
    {
        return appUserScoreDetailMapper.selectAppUserScoreDetailById(id);
    }

    /**
     * 查询用户积分明细列表
     * 
     * @param appUserScoreDetail 用户积分明细
     * @return 用户积分明细
     */
    @Override
    public List<AppUserScoreDetail> selectAppUserScoreDetailList(AppUserScoreDetail appUserScoreDetail)
    {
        return appUserScoreDetailMapper.selectAppUserScoreDetailList(appUserScoreDetail);
    }

    /**
     * 新增用户积分明细
     * 
     * @param appUserScoreDetail 用户积分明细
     * @return 结果
     */
    @Override
    public int insertAppUserScoreDetail(AppUserScoreDetail appUserScoreDetail)
    {
        return appUserScoreDetailMapper.insertAppUserScoreDetail(appUserScoreDetail);
    }

    /**
     * 修改用户积分明细
     * 
     * @param appUserScoreDetail 用户积分明细
     * @return 结果
     */
    @Override
    public int updateAppUserScoreDetail(AppUserScoreDetail appUserScoreDetail)
    {
        return appUserScoreDetailMapper.updateAppUserScoreDetail(appUserScoreDetail);
    }

    /**
     * 批量删除用户积分明细
     * 
     * @param ids 需要删除的用户积分明细ID
     * @return 结果
     */
    @Override
    public int deleteAppUserScoreDetailByIds(Integer[] ids)
    {
        return appUserScoreDetailMapper.deleteAppUserScoreDetailByIds(ids);
    }

    /**
     * 删除用户积分明细信息
     * 
     * @param id 用户积分明细ID
     * @return 结果
     */
    @Override
    public int deleteAppUserScoreDetailById(Integer id)
    {
        return appUserScoreDetailMapper.deleteAppUserScoreDetailById(id);
    }
}
